#pragma once

#include <string>

using namespace std;

template <class T>
class Saver
{
private:
public:
    Saver(){};
    ~Saver(){};

    void save(T *datas, int n, const string &path)
    {
        ofstream m_txt(path);
        for (int i = 0; i < n; i++)
        {
            m_txt << datas[i].serialize();
        }

        m_txt.close();
    };
};
